Imports Clo = Enhancements.Core.Logging
Imports Fun = Enhancements.Basic.Expressions.Functions
Imports Ref = System.Reflection
Imports Sys = System

Namespace Enhancements.Basic.Expressions
    ''' <summary>The exception that is thrown when a compiler's request for the expression variables types is aborted by the consumer of the VariablesTypesRequest event.</summary>
    ''' <remarks>The InnerException property holds the exception that leads to the throwing of these exceptions.</remarks>
    <Serializable(), DebuggerStepThrough()> _
    Public NotInheritable Class CompilerExpressionVariablesTypesRequestAbortedException
        Inherits CompilerException

        Private Sub New(ByVal _innerException As Sys.Exception)
            MyBase.New(_innerException)
        End Sub

        ''' <summary>Throws an exception.</summary>
        ''' <param name="_innerException">Exception that led to the throwing of this exception.</param>
        ''' <exception cref="CompilerExpressionVariablesTypesRequestAbortedException"> </exception>
        Friend Shared Sub ___Throw(ByVal _innerException As Sys.Exception)
            Dim _exception As CompilerExpressionVariablesTypesRequestAbortedException = New CompilerExpressionVariablesTypesRequestAbortedException(_innerException)

            Throw _exception
        End Sub

    End Class
End Namespace
